package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.base.orm.MPage;
import com.weixing.mall.provider.api.model.query.AgentMemberQuery;
import com.weixing.mall.provider.api.model.vo.AgentMemberAddressVo;
import com.weixing.mall.provider.api.model.vo.DeliveryAddressVo;
import com.weixing.mall.provider.model.domain.DeliveryAddress;
import com.weixing.mall.provider.model.dto.DeliveryAddressDto;
import com.weixing.mall.provider.model.dto.DeliveryAddressPCDto;
import com.weixing.mall.provider.model.query.DeliveryAddressPCQuery;
import com.weixing.mall.provider.model.vo.*;

import java.util.List;

/**
 * <p>
 * 会员模块-收货地址表 服务类
 * </p>
 *
 * @author Small
 * @since 2019-11-13
 */
public interface IDeliveryAddressService extends IService<DeliveryAddress> {

    List<DeliveryAddressVo> selectMemberAddrList(Long mid);

    Long savePC(DeliveryAddressPCDto deliveryAddressPCDto);

    IPage<DeliverAddressPCVo> selectListPC(Page page, DeliveryAddressPCQuery deliveryAddressPCQuery);

    DeliveryAddressEditPCVo selectDetailPC(long id);

    IPage<AgentMemberAddressVo> selectAgentMemberAddressOfPage(Page page, AgentMemberQuery agentMemberQuery);

    Long create(DeliveryAddressDto deliveryAddressDto, Long mid);

    DeliveryAddressVo selectDetail(Long id);

    IPage<DeliverAddressPCVo> selectByMemberIdOfPage(Page page, Long memberId);
}
